window.onload = function() {
	var sBasePath = "../../editer/fckeditor/";
	var oFCKeditor = new FCKeditor('objectForm.content');
	oFCKeditor.BasePath = sBasePath;
	// oFCKeditor.ToolbarSet = 'Basic';
	oFCKeditor.ReplaceTextarea();

	$.ajax( {
		type : "POST",
		url : "../newsType-list/",
		success : function(msg) {
			$("#typekey12").html(msg);
			doit();
		}
	});

}
function GetInnerHTML() {
	var oEditor = FCKeditorAPI.GetInstance('objectForm.content');
	return oEditor.EditorDocument.body.innerHTML;
}
function callback(str) {
	InsertHTML(str);
}

function piccallback(str) {
	$("#pic").val(str);
	$("#picimg").attr("src","../../"+str);
}
function InsertHTML(str) {
	var oEditor = FCKeditorAPI.GetInstance('objectForm.content');
	if (oEditor.EditMode == FCK_EDITMODE_WYSIWYG) {
		// Insert the desired HTML.
		oEditor.InsertHtml("<img src='http://localhost:8080/weeego/" + str
				+ "'/>");
	} else {
		alert('You must be on WYSIWYG mode!');
	}
}